<?php
	//@FBCONNECT INTERACTION
	$isFacebookUser =  AppUtility::isFacebookUser($session->read("Auth.User.id"));
?>
<section class="myprofile"> 
	<div class="container"> 
		<div class="row">
			<h2>Edit Profile</h2>  
			<div class="wrap_all_form box_profile">      
				<div class="padd_inner">
					<div class="profile_stats"> 			
						<?php 
						$get = $_GET;
						unset($get['url']);
						echo $form->create($userModelAlias, array('url'=>am(array("action"=>"editProfile",'?'=>$get),$this->params['named']),'enctype' => 'multipart/form-data'));
						if($isFacebookUser == false)
						{
							echo $form->inputs(array('fieldset'=>false), null, 'contact');
						}
						echo $form->inputs(array('fieldset'=>false), null, 'edit');
						if($buniessInfo)
						{
						  echo $form->inputs(array('fieldset'=>false), null, 'business_info');
						}
						echo $form->inputs(array('fieldset'=>false), null, 'general');
						echo $form->end(array('label'=>__('Update Profile'), 'class'=>'bt_submit bt_EditProfile'));
						?>   
						<div class="fr">         
						<?php
							if($isFacebookUser == false){?>
							<?php echo $html->link(__('Change Password'),('/users/changePassword'),array('class'=>'key'));?> | 
						<?php }?>
						<?php echo $html->link(__("Notifications Setting"),array('controller'=>'users','action'=>'notification'),array('class'=>'notification'))?>
						</div>
					</div><!--profile_stats--> 
				</div><!--padd_inner -->
			</div><!--/.wrap_all_form-->
		</div><!--/.row-->
	</div> <!--/.container-->
</section> <!-- /.hauptseite-->